package com.dmap.officialwebsite.vo;


import com.dmap.officialwebsite.po.Article;

import java.io.Serializable;

public class ArticleVo implements Serializable {
    private String id;
    private String companyId;
    private String companyName;
    private String articleTypeId;
    private String articleTypeName;
    private String title;
    private String secondTitle;
    private String address;//文章地址url
    private String author;//作者
    private Long createTime;
    private Long updateTime;

    public ArticleVo(Article article) {
        this.id = article.getId().toString();
        this.companyId = article.getCompanyId().toString();
        this.companyName = article.getCompanyName();
        this.articleTypeId = article.getArticleTypeId().toString();
        this.articleTypeName = article.getArticleTypeName();
        this.title = article.getTitle();
        this.secondTitle = article.getSecondTitle();
        this.address = article.getAddress();
        this.author = article.getAuthor();
        this.createTime = article.getCreateTime();
        this.updateTime = article.getUpdateTime();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getArticleTypeId() {
        return articleTypeId;
    }

    public void setArticleTypeId(String articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    public String getArticleTypeName() {
        return articleTypeName;
    }

    public void setArticleTypeName(String articleTypeName) {
        this.articleTypeName = articleTypeName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSecondTitle() {
        return secondTitle;
    }

    public void setSecondTitle(String secondTitle) {
        this.secondTitle = secondTitle;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}